package com.me.bbs.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.me.bbs.dto.ForumFollowingDTO;
import com.me.bbs.dto.UserFollowingDTO;
import com.me.bbs.entity.ForumFollowing;
import com.me.bbs.entity.UserFollowing;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lm
 * @since 2023-01-22
 */
public interface UserFollowingMapper extends BaseMapper<UserFollowing> {
    Page<UserFollowingDTO> selectUserFollowingDtoList(Page<UserFollowing> page
            , @Param(Constants.WRAPPER) Wrapper<UserFollowing> wrapper);

    Page<UserFollowingDTO>  selectFansList(Page<UserFollowing> page
            , @Param(Constants.WRAPPER) Wrapper<UserFollowing> wrapper);
}
